package com.sb.entity;

/**
 * Created by wujunzhou on 2017/10/24.
 */
public class Result {
    //    @JsonIgnore
//    public static final String ERR = "-1";
    //    @JsonIgnore
//    public static final String SUCCESS = "0";
    public static final Boolean SUCCESS = true;
    public static final Boolean FAIL = false;
    private boolean success;//状态
    private String errorCode;//错误编码
    private String errorMsg;//错误信息
    private Object data;//data


//    success Boolean
//    errorCode Integer
//    errorMsg String
//    data  Object

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
